package org.potiorb.demo.generated;

import org.potiorb.orb.poa.Servant;
import org.potiorb.orb.giop.GIOPMessageRequest;
import org.potiorb.orb.giop.GIOPMessageReply;
import org.potiorb.orb.portable.InvokeHandler;

/**
 *	Generated from IDL definition of interface "Teste"
 *	@author JacORB IDL compiler
 */

public abstract class TestePOA extends Servant 	implements InvokeHandler, TesteOperations
{
        static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
        static
        {
                m_opsHash.put ( "simples_hello", new java.lang.Integer(0));
        }

	private String[] ids = {"IDL:Teste:1.0","IDL:omg.org/CORBA/Object:1.0"};
	public  GIOPMessageReply _invoke(GIOPMessageRequest msg)
	{
          GIOPMessageReply _out = new GIOPMessageReply();
          java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( msg.getOperation() );

          switch ( opsIndex.intValue() )
          {
              case 0: // simples_hello
               {

                java.lang.String _arg0 = new String(msg.getRequest_body());
                simples_hello(_arg0);
                break;
               }
          }
       return null;

	}

	public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
	{
		return ids;
	}
}
